home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 122 / MOBICLIC 122.ISO / mac / DATA / DSS122 / DSS122_05 / DSS122_05.swf / scripts / frame_21 / DoAction.as
Text File  |  2009-12-14  |  19KB  |  650 lines

  1. function activeFLE_D()
  2. {
  3.    var _loc2_ = FEN_HAT.FLE_D;
  4.    _loc2_.pCible = FEN_HAT.ACCUEIL;
  5.    _loc2_.gotoAndPlay("E1");
  6.    _loc2_.onRollOver = function()
  7.    {
  8.       gereCursor(2);
  9.       this.gotoAndPlay("E2");
  10.    };
  11.    _loc2_.onRollOut = function()
  12.    {
  13.       gereCursor(1);
  14.       this.gotoAndPlay("E1");
  15.    };
  16.    _loc2_.onPress = function()
  17.    {
  18.       this.gotoAndPlay("E1");
  19.       this.pCible["slideHAT_" + gSlide_HAT]._visible = false;
  20.       this.pCible["slideHAT_" + gSlide_HAT]._y = 0;
  21.       gSlide_HAT += 1;
  22.       this.pCible["slideHAT_" + gSlide_HAT]._visible = true;
  23.       FEN_HAT.SCROLL_._y = FEN_HAT.SCROLL_.pOrigY;
  24.       activeFLE_G();
  25.       if(gSlide_HAT == gNbSlide_HAT)
  26.       {
  27.          gereCursor(1);
  28.          this.gotoAndPlay("E0");
  29.          desactiveClip(this);
  30.       }
  31.    };
  32. }
  33. function activeFLE_G()
  34. {
  35.    var _loc2_ = FEN_HAT.FLE_G;
  36.    _loc2_.pCible = FEN_HAT.ACCUEIL;
  37.    _loc2_.gotoAndPlay("E1");
  38.    _loc2_.onRollOver = function()
  39.    {
  40.       gereCursor(2);
  41.       this.gotoAndPlay("E2");
  42.    };
  43.    _loc2_.onRollOut = function()
  44.    {
  45.       gereCursor(1);
  46.       this.gotoAndPlay("E1");
  47.    };
  48.    _loc2_.onPress = function()
  49.    {
  50.       this.gotoAndPlay("E1");
  51.       this.pCible["slideHAT_" + gSlide_HAT]._visible = false;
  52.       this.pCible["slideHAT_" + gSlide_HAT]._y = 0;
  53.       gSlide_HAT -= 1;
  54.       this.pCible["slideHAT_" + gSlide_HAT]._visible = true;
  55.       FEN_HAT.SCROLL_._y = FEN_HAT.SCROLL_.pOrigY;
  56.       activeFLE_D();
  57.       if(gSlide_HAT == 1)
  58.       {
  59.          gereCursor(1);
  60.          this.gotoAndPlay("E0");
  61.          desactiveClip(this);
  62.       }
  63.    };
  64. }
  65. function activeFEN_HAT()
  66. {
  67.    var _loc4_ = FEN_HAT.ACCUEIL;
  68.    gNbSlide_HAT = 0;
  69.    gSlide_HAT = 1;
  70.    var _loc3_ = 1;
  71.    while(_loc3_ < 5)
  72.    {
  73.       if(photoStocker["I_" + gModuleName + "_H" + gModuleNum + "_0" + _loc3_] !== undefined)
  74.       {
  75.          var _loc6_ = _loc4_.createEmptyMovieClip("slideHAT_" + _loc3_,chercheDepthPlus(_loc4_,0));
  76.          var _loc5_ = "I_" + gModuleName + "_H" + gModuleNum + "_0" + _loc3_;
  77.          gNbSlide_HAT += 1;
  78.          this["mclR" + _loc3_] = new MovieClipLoader();
  79.          this["mclR" + _loc3_].loadClip(_global.gModulePath + moduleInfo.getResourceById(_loc5_).firstChild.attributes.src,_loc6_);
  80.          this["mclR" + _loc3_].onLoadInit = function(myClip)
  81.          {
  82.             if(myClip._name.split("_")[1] !== "1")
  83.             {
  84.                myClip._visible = false;
  85.             }
  86.             else
  87.             {
  88.                myClip._visible = true;
  89.             }
  90.          };
  91.       }
  92.       _loc3_ = _loc3_ + 1;
  93.    }
  94.    if(gNbSlide_HAT == 1)
  95.    {
  96.       _loc4_ = FEN_HAT.FLE_G;
  97.       _loc4_._visible = 0;
  98.       _loc4_ = FEN_HAT.FLE_D;
  99.       _loc4_._visible = 0;
  100.    }
  101.    else
  102.    {
  103.       activeFLE_D();
  104.    }
  105.    _loc4_ = FEN_HAT.BT_FERMER;
  106.    _loc4_.onRollOver = function()
  107.    {
  108.       gereCursor(2);
  109.       this.gotoAndPlay("E2");
  110.    };
  111.    _loc4_.onRollOut = function()
  112.    {
  113.       gereCursor(1);
  114.       this.gotoAndPlay("E1");
  115.    };
  116.    _loc4_.onPress = function()
  117.    {
  118.       gereCursor(1);
  119.       this.gotoAndPlay("E1");
  120.       removeMovieClip("FEN_HAT");
  121.    };
  122.    _loc4_ = FEN_HAT.SCROLL_;
  123.    _loc4_.pBar = FEN_HAT.SCROLL_BAR;
  124.    _loc4_.pOrigY = _loc4_._y;
  125.    _loc4_.pDiff = _loc4_.pOrigY - _loc4_.pBar._y;
  126.    _loc4_.pMaxY = _loc4_.pBar._y + _loc4_.pBar._height - _loc4_.pDiff - _loc4_._height;
  127.    _loc4_.distSCROLL = _loc4_.pMaxY - _loc4_.pOrigY;
  128.    _loc4_.onRollOver = function()
  129.    {
  130.       gereCursor(3);
  131.       this.gotoAndPlay("E2");
  132.    };
  133.    _loc4_.onRollOut = function()
  134.    {
  135.       gereCursor(1);
  136.       this.gotoAndPlay("E1");
  137.    };
  138.    _loc4_.onPress = function()
  139.    {
  140.       this.pCible = FEN_HAT.ACCUEIL["slideHAT_" + gSlide_HAT];
  141.       this.pCibleMaskHAT = FEN_HAT.masque_HAT;
  142.       gereCursor(4);
  143.       this.onEnterFrame = function()
  144.       {
  145.          if(this.pCible.pDistSLIDE == undefined)
  146.          {
  147.             this.pCible.pDistSLIDE = this.pCible._height - this.pCibleMaskHAT._height;
  148.          }
  149.          if(_ymouse - this._height <= this.pOrigY)
  150.          {
  151.             this._y = this.pOrigY;
  152.          }
  153.          else if(_ymouse - this._height >= this.pMaxY)
  154.          {
  155.             this._y = this.pMaxY;
  156.          }
  157.          else
  158.          {
  159.             this._y = _ymouse - this._height;
  160.          }
  161.          pCent = (this._y - this.pOrigY) * 100 / this.distSCROLL;
  162.          this.pCible._y = (- this.pCible.pDistSLIDE) * pCent / 100;
  163.          updateAfterEvent();
  164.       };
  165.    };
  166.    _loc4_.onRelease = _loc4_.onReleaseOutside = function()
  167.    {
  168.       if(this.hitTest(_xmouse,_ymouse,true))
  169.       {
  170.          gereCursor(3);
  171.       }
  172.       else
  173.       {
  174.          gereCursor(1);
  175.       }
  176.       delete this.onEnterFrame;
  177.    };
  178.    _loc4_ = FEN_HAT.ZONE;
  179.    _loc4_.useHandCursor = 0;
  180.    _loc4_.onRollOver = function()
  181.    {
  182.    };
  183.    _loc4_.onRollOut = function()
  184.    {
  185.    };
  186.    _loc4_.onPress = function()
  187.    {
  188.    };
  189. }
  190. function adapteImage(myC)
  191. {
  192.    if(myC._width > myC._height)
  193.    {
  194.       var _loc2_ = cadreWidth * 100 / myC._width;
  195.       if(myC._height * _loc2_ / 100 > cadreHeight)
  196.       {
  197.          _loc2_ = cadreHeight * 100 / myC._height;
  198.       }
  199.    }
  200.    else
  201.    {
  202.       _loc2_ = cadreHeight * 100 / myC._height;
  203.       if(myC._width * _loc2_ / 100 > cadreWidth)
  204.       {
  205.          _loc2_ = cadreWidth * 100 / myC._width;
  206.       }
  207.    }
  208.    myC._width = myC._width * _loc2_ / 100;
  209.    myC._height = myC._height * _loc2_ / 100;
  210.    var _loc4_ = (cadreWidth - myC._width) / 2;
  211.    myC._x = _loc4_;
  212.    var _loc3_ = (cadreHeight - myC._height) / 2;
  213.    myC._y = _loc3_;
  214.    myC._visible = true;
  215. }
  216. function afficheImage_R(lNum, lCode)
  217. {
  218.    this["CLIP_PHOTO_0" + (lNum + 1)].gotoAndPlay("E1");
  219.    this["CLIP_PHOTO_0" + (lNum + 1)]._alpha = 0;
  220.    this["_R0" + (lNum + 1)].mcImage = this["CLIP_PHOTO_0" + (lNum + 1)];
  221.    var _loc5_ = this["CLIP_PHOTO_0" + (lNum + 1)].ACCUEIL;
  222.    _loc5_.id = lCode;
  223.    var _loc9_ = _loc5_.createEmptyMovieClip("swfHolder_" + lNum,chercheDepthPlus(_loc5_,0));
  224.    this["mclR" + lNum] = new MovieClipLoader();
  225.    this["mclR" + lNum].loadClip(_global.gModulePath + moduleInfo.getResourceById(lCode).firstChild.attributes.src,_loc9_);
  226.    this["mclR" + lNum].onLoadInit = function(myClip)
  227.    {
  228.       cadreWidth = 71.6;
  229.       cadreHeight = 50.5;
  230.       adapteImage(myClip);
  231.       myClip._parent._parent._alpha = 100;
  232.    };
  233.    var _loc4_ = lCode.substr(lCode.length - 1,1);
  234.    var _loc7_ = undefined;
  235.    var _loc8_ = undefined;
  236.    if(soundObjects[gCommentName + "I_R" + gimme2digits(gNoQuestion) + _loc4_] !== undefined)
  237.    {
  238.       _loc7_ = "I_R" + gimme2digits(gNoQuestion) + _loc4_;
  239.    }
  240.    if(soundObjects[gBruitageName + "B_I_R" + gimme2digits(gNoQuestion) + _loc4_] !== undefined)
  241.    {
  242.       _loc8_ = "B_I_R" + gimme2digits(gNoQuestion) + _loc4_;
  243.    }
  244.    this["_R0" + (lNum + 1)].pSon = _loc7_;
  245.    this["_R0" + (lNum + 1)].pBruit = _loc8_;
  246. }
  247. function finBruitageResultat()
  248. {
  249.    gMcRepOk = undefined;
  250.    clearInterval(intervalTempoOk);
  251.    gListeQuestions.splice(0,1);
  252.    gListeQuestionsTotal.splice(0,1);
  253.    if(gResultat == "S")
  254.    {
  255.       gScore += 1;
  256.    }
  257.    if(gQuestion == gNbQuestions)
  258.    {
  259.       texte_NoQuestion.text = gQuestion + "/" + gNbQuestions;
  260.       texte_Score.text = gScore + "/" + gNbQuestions;
  261.       gotoAndStop("resultat");
  262.       play();
  263.    }
  264.    else
  265.    {
  266.       gNoQuestion = gListeQuestions[0];
  267.       gereTextes.videLM();
  268.       gQuestion += 1;
  269.       gotoAndStop("relance");
  270.       play();
  271.    }
  272. }
  273. if(photoStocker["I_" + gModuleName + "_H" + gModuleNum + "_01"] !== undefined)
  274. {
  275.    BT_HATIER.gotoAndPlay("E1");
  276.    BT_HATIER.onRollOver = function()
  277.    {
  278.       gereCursor(2);
  279.       this.gotoAndPlay("E2");
  280.    };
  281.    BT_HATIER.onRollOut = function()
  282.    {
  283.       gereCursor(1);
  284.       this.gotoAndPlay("E1");
  285.    };
  286.    BT_HATIER.onPress = function()
  287.    {
  288.       gereCursor(1);
  289.       this.gotoAndPlay("E1");
  290.       attachMovie("FEN_HAT","FEN_HAT",this._parent.getNextHighestDepth());
  291.       FEN_HAT._x = 165;
  292.       FEN_HAT._y = 15;
  293.       activeFEN_HAT();
  294.    };
  295. }
  296. else
  297. {
  298.    BT_HATIER._visible = false;
  299. }
  300. i = 1;
  301. while(i < 6)
  302. {
  303.    this["texte_LMR" + i]._visible = 0;
  304.    i++;
  305. }
  306. gOk = 1;
  307. texte_NoQuestion.text = gQuestion + "/" + gNbQuestions;
  308. texte_Score.text = gScore + "/" + gNbQuestions;
  309. gereTextes.afficheLM({codeLM:"LM_Q" + gimme2digits(gNoQuestion)});
  310. gListeReponse = [];
  311. var XmlLM = this.moduleInfo.returnNodeByPath("Module." + gLangue + ".LegendesMedias");
  312. var lList = ["A","B","C","D","E"];
  313. i = 4;
  314. while(i >= 0)
  315. {
  316.    var myClip = this["R" + gimme2digits(i + 1)];
  317.    var myClip2 = this["_R" + gimme2digits(i + 1)];
  318.    myClip.gotoAndPlay("E0");
  319.    myClip2._visible = false;
  320.    desactiveClip(myClip);
  321.    desactiveClip(myClip2);
  322.    if(gereTextes.getTextById(XmlLM,"LM_R" + gimme2digits(gNoQuestion) + lList[i]) == undefined)
  323.    {
  324.       lList.splice(i,1);
  325.       this["texte_LMR" + gimme2digits(i + 1)]._visible = 0;
  326.    }
  327.    i--;
  328. }
  329. gListeReponse = randomiseList(lList);
  330. if(gListeReponse.length == 0)
  331. {
  332.    var lList = ["A","B","C","D","E"];
  333.    i = 4;
  334.    while(i >= 0)
  335.    {
  336.       if(swfStocker["A_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + lList[i]] == undefined)
  337.       {
  338.          lList.splice(i,1);
  339.       }
  340.       i--;
  341.    }
  342.    gType = "SWF";
  343.    gListeReponse = randomiseList(lList);
  344.    if(gListeReponse.length == 0)
  345.    {
  346.       var lList = ["A","B","C","D","E"];
  347.       i = 4;
  348.       while(i >= 0)
  349.       {
  350.          trace(gCommentName + "R" + gimme2digits(gNoQuestion) + lList[i]);
  351.          var lSon = soundObjects[gCommentName + "R" + gimme2digits(gNoQuestion) + lList[i]];
  352.          var lBruitage = soundObjects[gBruitageName + "B_R" + gimme2digits(gNoQuestion) + lList[i]];
  353.          if(lSon == undefined && lBruitage == undefined)
  354.          {
  355.             lList.splice(i,1);
  356.          }
  357.          i--;
  358.       }
  359.       gListeReponse = randomiseList(lList);
  360.       gType = "MP3";
  361.       if(gListeReponse.length == 0)
  362.       {
  363.          var lList = ["A","B","C","D","E"];
  364.          i = 4;
  365.          while(i >= 0)
  366.          {
  367.             if(photoStocker["I_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + lList[i]] == undefined)
  368.             {
  369.                lList.splice(i,1);
  370.             }
  371.             i--;
  372.          }
  373.          gListeReponse = randomiseList(lList);
  374.          gType = "JPG";
  375.       }
  376.    }
  377. }
  378. else
  379. {
  380.    gType = "LM";
  381. }
  382. trace(gType);
  383. gDone = 0;
  384. gResultat = undefined;
  385. i = 0;
  386. while(i < gListeReponse.length)
  387. {
  388.    var myClip = this["R" + gimme2digits(i + 1)];
  389.    var myClip2 = this["_R" + gimme2digits(i + 1)];
  390.    myClip2.pNum = gimme2digits(i + 1);
  391.    myClip2.mcBouton = myClip;
  392.    myClip._visible = true;
  393.    myClip2._visible = true;
  394.    myClip.gotoAndPlay("E1");
  395.    myClip2.pCode = gListeReponse[i];
  396.    myClip2.pDone = 0;
  397.    trace(gType);
  398.    switch(gType)
  399.    {
  400.       case "LM":
  401.          gereTextes.afficheLM({codeLM:"LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i],numR:gimme2digits(i + 1)});
  402.          var pClip = this["LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i]];
  403.          var lH = 26.85;
  404.          if(pClip.LM.texte._height > lH)
  405.          {
  406.             pClip._y -= 13.4 * (pClip.LM.texte._height / lH - 1);
  407.          }
  408.          break;
  409.       case "SWF":
  410.          var myID = "A_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i];
  411.          afficheImage_R(i,myID);
  412.          break;
  413.       case "JPG":
  414.          var myID = "I_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i];
  415.          afficheImage_R(i,myID);
  416.          break;
  417.       case "MP3":
  418.          myClip2.mcSon = this["PICTO_SON_0" + (i + 1)];
  419.          myClip2.mcSon.gotoAndPlay("E1");
  420.          var lSon = soundObjects[gCommentName + "R" + gimme2digits(gNoQuestion) + lList[i]];
  421.          var lBruitage = soundObjects[gBruitageName + "B_R" + gimme2digits(gNoQuestion) + lList[i]];
  422.          if(lSon !== undefined)
  423.          {
  424.             myClip2.pSon = "R" + gimme2digits(gNoQuestion) + lList[i];
  425.          }
  426.    }
  427.    myClip2.gotoAndPlay("E1");
  428.    myClip2.pCode = gListeReponse[i];
  429.    if(myClip2.pCode == "A")
  430.    {
  431.       gMcRepOk = myClip2.mcBouton;
  432.    }
  433.    myClip2.onRollOver = function()
  434.    {
  435.       if(gDone == 0)
  436.       {
  437.          gereCursor(2);
  438.          this.mcBouton.gotoAndPlay("E2");
  439.          joueBruitage({nomSon:"B_" + this.pNum});
  440.          trace(this.pCode);
  441.          switch(gType)
  442.          {
  443.             case "SWF":
  444.             case "JPG":
  445.                if(this.pSon !== undefined)
  446.                {
  447.                   joueSon({nomSon:this.pSon,zapBlock:"NOZAP_NOBLOCK",actionFin:"RIEN"});
  448.                }
  449.                if(this.pBruit !== undefined)
  450.                {
  451.                   var _loc3_ = findID(this.pBruit);
  452.                   if(_loc3_ !== 1)
  453.                   {
  454.                      joueBruitage({nomSon:this.pBruit});
  455.                   }
  456.                   else
  457.                   {
  458.                      joueBruitage({nomSon:this.pBruit,loopSon:2000});
  459.                   }
  460.                }
  461.                this.mcImage.gotoAndStop("E2");
  462.                var _loc4_ = ANIM.createEmptyMovieClip("swfHolder_" + this.pCode,ANIM.getNextHighestDepth());
  463.                this.mclR_Q = new MovieClipLoader();
  464.                this.mclR_Q.loadClip(_global.gModulePath + moduleInfo.getResourceById(this.mcImage.ACCUEIL.id).firstChild.attributes.src,_loc4_);
  465.                break;
  466.             case "MP3":
  467.                myClip2.mcSon.gotoAndPlay("E2");
  468.                if(this.pSon !== undefined)
  469.                {
  470.                   joueSon({nomSon:"R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum)],zapBlock:"NOZAP_NOBLOCK",actionFin:"RIEN"});
  471.                }
  472.                else
  473.                {
  474.                   joueBruitage({nomSon:"B_R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum)]});
  475.                }
  476.          }
  477.       }
  478.    };
  479.    myClip2.onRollOut = function()
  480.    {
  481.       if(gDone == 0)
  482.       {
  483.          gereCursor(1);
  484.          this.gotoAndPlay("E1");
  485.          stopBruitage({nomSon:"B_" + this.pNum});
  486.          gereCursor(1);
  487.          this.mcBouton.gotoAndPlay("E1");
  488.          stopBruitage({nomSon:"B_" + this.pNum});
  489.          switch(gType)
  490.          {
  491.             case "SWF":
  492.             case "JPG":
  493.                if(this.pSon !== undefined)
  494.                {
  495.                   stopComment();
  496.                }
  497.                if(this.pBruit !== undefined)
  498.                {
  499.                   stopBruitage({nomSon:this.pBruit});
  500.                }
  501.                this.mcImage.gotoAndStop("E1");
  502.                removeMovieClip(ANIM["swfHolder_" + this.pCode]);
  503.                break;
  504.             case "MP3":
  505.                myClip2.mcSon.gotoAndPlay("E1");
  506.                if(this.pSon !== undefined)
  507.                {
  508.                   stopComment();
  509.                }
  510.                else
  511.                {
  512.                   stopBruitage({nomSon:"B_R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum)]});
  513.                }
  514.          }
  515.       }
  516.    };
  517.    myClip2.onPress = function()
  518.    {
  519.       if(gDone == 0)
  520.       {
  521.          gereCursor(1);
  522.          stopBruitage({nomSon:"B_" + this.pNum});
  523.          gDone = 1;
  524.          trace(gMcRepOk + " ___________________________________ ");
  525.          if(this.pCode == "A")
  526.          {
  527.             PERSO_QUIZ.gotoAndPlay("S");
  528.             gResultat = "S";
  529.             if(gTempoRepOk == undefined)
  530.             {
  531.                joueBruitage({nomSon:"B_SUCCES",actionFin:"finBruitageResultat"});
  532.             }
  533.             else
  534.             {
  535.                joueBruitage({nomSon:"B_SUCCES"});
  536.                intervalTempoOk = setInterval(gClipGen,"finBruitageResultat",gTempoRepOk * 1000);
  537.                gMcRepOk.gotoAndPlay("E4");
  538.             }
  539.          }
  540.          else
  541.          {
  542.             this.mcBouton.gotoAndPlay("E3");
  543.             gResultat = "E";
  544.             PERSO_QUIZ.gotoAndPlay("E");
  545.             if(gTempoRepOk == undefined)
  546.             {
  547.                joueBruitage({nomSon:"B_ECHEC",actionFin:"finBruitageResultat"});
  548.             }
  549.             else
  550.             {
  551.                joueBruitage({nomSon:"B_ECHEC"});
  552.                intervalTempoOk = setInterval(gClipGen,"finBruitageResultat",gTempoRepOk * 1000);
  553.                gMcRepOk.gotoAndPlay("E4");
  554.             }
  555.          }
  556.       }
  557.    };
  558.    i++;
  559. }
  560. var lSon = soundObjects[gCommentName + "Q" + gimme2digits(gNoQuestion)];
  561. if(lSon !== undefined)
  562. {
  563.    joueSon({nomSon:"Q" + gimme2digits(gNoQuestion),actionFin:"RIEN"});
  564.    BT_RQUEST.gotoAndStop("E1");
  565.    BT_RQUEST.onRollOver = function()
  566.    {
  567.       this.gotoAndPlay("E2");
  568.       gereTextes.afficheIB({mc:this,codeIB:"IB94"});
  569.       joueBruitage({nomSon:"B_RQUEST"});
  570.    };
  571.    BT_RQUEST.onRollOut = function()
  572.    {
  573.       this.gotoAndPlay("E1");
  574.       gereTextes.masqueIB();
  575.       stopBruitage({nomSon:"B_RQUEST"});
  576.    };
  577.    BT_RQUEST.onPress = function()
  578.    {
  579.       this.gotoAndPlay("E3");
  580.       joueSon({nomSon:"Q" + gimme2digits(gNoQuestion),actionFin:"RIEN"});
  581.       gereTextes.masqueIB();
  582.       stopBruitage({nomSon:"B_RQUEST"});
  583.    };
  584. }
  585. else
  586. {
  587.    BT_RQUEST.gotoAndStop("E0");
  588.    delete BT_RQUEST.onRollOver;
  589.    delete BT_RQUEST.onRollOut;
  590.    delete BT_RQUEST.onPress;
  591. }
  592. if(swfStocker["A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion)] == undefined)
  593. {
  594.    if(photoStocker["I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion)] == undefined)
  595.    {
  596.       var myID = "A_" + gModuleName + "_Q00";
  597.    }
  598.    else
  599.    {
  600.       var myID = "I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion);
  601.    }
  602. }
  603. else
  604. {
  605.    var myID = "A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion);
  606. }
  607. var photoholderNom = ANIM.createEmptyMovieClip("swfHolder",chercheDepthPlus(ANIM,0));
  608. this.mclQ = new MovieClipLoader();
  609. this.mclQ.loadClip(_global.gModulePath + moduleInfo.getResourceById(myID).firstChild.attributes.src,photoholderNom);
  610. if(myID.split("")[0] == "I")
  611. {
  612.    this.mclQ.onLoadInit = function(myClip)
  613.    {
  614.       cadreWidth = 303.9;
  615.       cadreHeight = 343.4;
  616.       adapteImage(myClip);
  617.    };
  618. }
  619. var lBruitage = soundObjects[gBruitageName + "B_Q" + gimme2digits(gNoQuestion)];
  620. if(lBruitage !== undefined)
  621. {
  622.    PICTO_SON_Q.gotoAndPlay("E1");
  623.    PICTO_SON_Q.onRollOver = function()
  624.    {
  625.       this.gotoAndPlay("E2");
  626.       joueBruitage({nomSon:"B_Q" + gimme2digits(gNoQuestion)});
  627.    };
  628.    PICTO_SON_Q.onRollOut = function()
  629.    {
  630.       this.gotoAndPlay("E1");
  631.       stopBruitage({nomSon:"B_Q" + gimme2digits(gNoQuestion)});
  632.    };
  633. }
  634. var lSon = soundObjects[gCommentName + "RQ" + gimme2digits(gNoQuestion)];
  635. if(lSon !== undefined)
  636. {
  637.    PICTO_SON_Q.gotoAndPlay("E1");
  638.    PICTO_SON_Q.onRollOver = function()
  639.    {
  640.       this.gotoAndPlay("E2");
  641.       joueSon({nomSon:"RQ" + gimme2digits(gNoQuestion),zapBlock:"NOZAP_NOBLOCK",actionFin:"RIEN"});
  642.    };
  643.    PICTO_SON_Q.onRollOut = function()
  644.    {
  645.       this.gotoAndPlay("E1");
  646.       stopComment();
  647.    };
  648. }
  649. stop();
  650.